package com.xiaouyudeguang.common.annotations;

import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * @ClassName ConsumerForEvent
 * @Author zhaoguang
 * @Description ConsumerForEvent
 * @Date 2020/4/13 0013
 * @Version 1.0
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface ConsumerForEvent {

    /**
     * 路由
     *
     * @return
     */
    String key() default "";

}
